#include <stdlib.h> // for malloc() and free()
#include <stdio.h>  // for printf() if needed for debugging

namespace unix_MallocSizeof {
void test() {
    long* p = (long *)malloc(sizeof(short));
    // warn: result is converted to 'long *', which is
    // incompatible with operand type 'short'
    free(p);
}
}